#!/usr/bin/python
# -*- coding: utf-8 -*-
# File: glade.py
# Author: Tomás Vírseda
# License: GPL v3
# Description:  a useful class for managing glade files and widgets

import os
import gtk
import gtk.glade


class Widgets:
    def __init__(self,file):
        self.widgets = gtk.glade.XML(file)

    def __getitem__(self,key):
        return self.widgets.get_widget(key)
